#ifndef CUBE_H
#define CUBE_H

#include <QVector3D>
#include "GL/glew.h"

class Cube
{
  public:
    Cube();
    Cube(const QVector3D& pos, float size, float rx, float ry, float rz);

    float size() const;
    const QVector3D& pos() const;
    void setSize(float size);
    void setPos(const QVector3D& pos);

    void create();
    void render();

  protected:
    GLuint mDisplayListID;
    float mSize;
    QVector3D mPosition;
    float mRotX, mRotY, mRotZ;

};

#endif // CUBE_H
